package com.qiantu.phone.ui.shotview;

import android.content.Context;

import com.qiantu.api.db.LLDeviceCustomDBManager;
import com.qiantu.api.entity.DeviceCustomKeyBean;
import com.qiantu.phone.app.AppApplication;

import java.util.List;

public class KeyDeviceActView extends BaseDeviceActView{

    public KeyDeviceActView(Context context, String deviceType) {
        super(context,deviceType);
    }
    @Override
    public int getLayoutId() {
        return 0;
    }

    @Override
    public void initView() {


    }

    @Override
    public void updateView() {

    }

    @Override
    protected void onAttachedToWindow() {
        super.onAttachedToWindow();
        if(mDevice != null){
            List<DeviceCustomKeyBean> beans = LLDeviceCustomDBManager.getInstance(AppApplication.getInstance()).getDataByDeviceSerialNo(mDevice.getDeviceSerialNo());
            mDevice.setDeviceCustomKeys(beans);
        }
    }
}
